package com.eascs.ticket.configuration.service;

import java.util.List;

import org.springframework.stereotype.Service;

import com.eascs.ticket.common.service.BaseSevice;

@Service
public class DictionaryService extends BaseSevice {
	public List<Object[]> getAllDictionaryType() {
		return this.proxyDao.findObjectsList("select id,code,name,comments from dictionary_type order by code");
	}

	public List<Object[]> getDictionaryTypeDataSource() {
		return this.proxyDao.findObjectsList("select code,name,comments from dictionary_type order by code");
	}

	public List<Object[]> getAllDictionaryData() {
		return this.proxyDao.findObjectsList("select id,type_code,code,name,comments,order_code from dictionary_data order by type_code,order_code");
	}
}
